package com.ybk.zs.service.impl;

import com.ybk.zs.dao.CostScoreMapper;
import com.ybk.zs.domain.CostScore;
import com.ybk.zs.domain.CostScoreExample;
import com.ybk.zs.service.ICostScoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2016/9/6.
 */
@Service
public class CostScoreService implements ICostScoreService{

    @Autowired(required = false)
    CostScoreMapper costScoreMapper;

    @Override
    public int countByExample(CostScoreExample example) {
        return this.costScoreMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(CostScoreExample example) {
        return this.costScoreMapper.deleteByExample(example);
    }

    @Override
    public int insert(CostScore record) {
        return this.costScoreMapper.insert(record);
    }

    @Override
    public int insertSelective(CostScore record) {
        return this.costScoreMapper.insertSelective(record);
    }

    @Override
    public List<CostScore> selectByExample(CostScoreExample example) {
        return this.costScoreMapper.selectByExample(example);
    }

    @Override
    public int updateByExampleSelective(CostScore record, CostScoreExample example) {
        return this.costScoreMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(CostScore record, CostScoreExample example) {
        return this.costScoreMapper.updateByExample(record,example);
    }
}
